/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.Model.Repositories;

import com.Model.TipoCampo;
import com.thoughtworks.xstream.XStream;
import java.util.List;

/**
 *
 * @author Fellipe
 */
public class TipoCampoRepository {
    
    private com.Clientes.TipoCampo.TipoCampo_Service service = new com.Clientes.TipoCampo.TipoCampo_Service();
    private com.Clientes.TipoCampo.TipoCampo port = service.getTipoCampoPort();
    private XStream xstream = new XStream();
    
    public List<TipoCampo> read() {
        return fromXMLList(port.read());
    }
    
    private List<TipoCampo> fromXMLList(String xml) {
        return (List<TipoCampo>) xstream.fromXML(xml);
    }
    
}
